﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
using static System.Net.Mime.MediaTypeNames;

namespace UI.ValueConverter
{
    internal class TextVerticalAlignmentHelper : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            string result = "";
            if (value == null)
            {

            }
            else
            {
                string s = value.ToString();

                int a = s.Length;
                for (int i = 0; i < a; i++)
                {
                    result += s.Substring(i, 1) + "\n";
                }
            }

            return result;
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
